package com.example.aitoedu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aitoedu.dto.MyCourseDTO;
import com.example.aitoedu.entity.Sc;
import com.example.aitoedu.vo.MyQuestionVO;
import com.example.aitoedu.vo.StuCourseVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 曹正豪
* @description 针对表【sc(选课信息)】的数据库操作Mapper
* @createDate 2024-10-14 19:17:58
* @Entity com.example.aitoedu.entity.Sc
*/
public interface ScMapper extends BaseMapper<Sc> {
    List<Long> selectSidByCourseId(Long courseId);

    List<MyQuestionVO> getCidsNameBySid(Long sid);

    List<StuCourseVO> myCourse(@Param("sid") Long sid, @Param("mc") MyCourseDTO myCourseDTO);

    List<Long> getAllTidsBySid(Long id);

    List<Long> getAllSidsByTid(Long id);
}




